#ifndef _TOKEN_H_
#define _TOKEN_H_

#include <string>

using namespace std;

#include "common.h"

class Token {
public:
    int type;
    string text;
    Token(int type, string text) {
        this->type = type;
        this->text = text;
    }
    string to_string() {
        string tname = token_names[type];
        return "<'" + text + "', " + tname + ">";
    }
};

#endif
